﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="popoupControl.aspx.vb" Inherits="pruebas_popoupControl" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
    
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
         <asp:TextBox ID="TextBox1" runat="server" Width="73px" Height="25px"></asp:TextBox>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:ImageButton ID="ImageButton1" runat="server" 
                ImageUrl="~/images/check14x13_blue.png" />
            <asp:PopupControlExtender ID="ImageButton1_PopupControlExtender" runat="server" 
                DynamicServicePath="" Enabled="True" ExtenderControlID="" 
                PopupControlID="Panel1" Position="Right" TargetControlID="ImageButton1">
            </asp:PopupControlExtender>
        <br />
        <br />
        <asp:Panel ID="Panel1" runat="server" Height="132px" Width="300px">
          
           <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="AnimalId" DataSourceID="SqlDataSource1">
                <Columns>
                    <asp:BoundField DataField="AnimalId" HeaderText="AnimalId" 
                        SortExpression="AnimalId" InsertVisible="False" ReadOnly="True" />
                    <asp:BoundField DataField="sexo" HeaderText="sexo" 
                        SortExpression="sexo" />
                    <asp:BoundField DataField="numero" HeaderText="numero" 
                        SortExpression="numero" />
                    <asp:BoundField DataField="letra" HeaderText="letra" SortExpression="letra" />
                    <asp:BoundField DataField="ano" HeaderText="ano" 
                        SortExpression="ano" />
                    <asp:BoundField DataField="nombre" HeaderText="nombre" 
                        SortExpression="nombre" />
                </Columns>
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:GanaderiaConnectionString %>" 
    
                
                SelectCommand="SELECT [AnimalId], [sexo], [numero], [letra], [ano], [nombre] FROM [animal] WHERE (([hierro] = @hierro) AND ([fechabaja] IS NULL))">
                <SelectParameters>
                    <asp:Parameter DefaultValue="SFC" Name="hierro" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
          
            
            
            
            
        </asp:Panel>
        </ContentTemplate>
        </asp:UpdatePanel>
        
        
       
    
    </div>
    </form>
</body>
</html>
